package com.cty.service.impl;

import com.cty.dao.LoginDao;
import com.cty.dao.impl.LoginDaoImpl;
import com.cty.pojo.User;
import com.cty.service.LoginService;

/**
 * @Auther: cty
 * @Date: 2020/2/11 16:12
 * @Description:
 * @version: 1.0
 */
public class LoginServiceImpl implements LoginService {
    //创建Dao层过度
    LoginDao ld=new LoginDaoImpl();
    //校验用户登录信息
    @Override
    public User checkLoginService(String uname, String pwd) {

        return ld.checkLoginDao(uname, pwd);
    }

    @Override
    public User checkUidService(String uid) {

        return ld.checkUidDao(uid);
    }
}
